
#include <xllp_defs.h>
#include <xllp_i2c.h>
#include <i2c.h>

int printf(const char *fmt, ...);

void backlight_off()
{   
   I2cWriteByte(0x34, 0x3c, 0x00);//device addr : 0x68==>0x34
}

void backlight_on()
{
    int ret = 0;
    InitI2c();
    ret = I2cWriteByte(0x34, 0x3c, 0x7f);
	if (ret != 0) {
		printf("i2c write error\n");
	}
}

void backlight_setbrightness(int val)
{
   I2cWriteByte(0x34, 0x3c, val);
}
